package com.ifeedme.network.socket.events
{
	/**
	* author Jim Hayes (www.ifeedme.com) may 2007
	*/	
	
	import flash.events.Event;

	public class SocketConnectionEvent extends Event
	{
		private var _type:String;
		private var _isConnected:Boolean;
		private var _server:String;
		private var _port:int;
		private var _message:String;
		
		function SocketConnectionEvent(type:String,isConnected:Boolean,server:String,port:int,message:String,bubbles:Boolean=false)
		{
			super(type,bubbles);
			_type = type;
			_isConnected = isConnected;
			_server = server;
			_port = port;
			_message = message;
		}
		
		override public function clone():Event {
            return new SocketConnectionEvent(_type,_isConnected,_server,_port,_message);
        }
		
		
		public function get isConnected():Boolean
		{
			return _isConnected;
		}
		
		public function get server():String
		{
			return _server;
		}
		
		public function get port():int
		{
			return _port;
		}
		
		public function get message():String
		{
			return _message;
		}
		
	}
}